home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act3 / 00341.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  4.1 KB  |  67 lines

  1. on defbuggy
  2.   global ogre, caranim, mouthindex, temp, phrases, variations
  3.   set phrases to [:]
  4.   set phrases to [:]
  5.   set variations to [0.3921, 0.78039999999999998, 1.16110000000000002, 1.53069999999999995, 1.88559999999999994, 2.22230000000000016, 2.53759999999999986, 2.8283999999999998, 3.09200000000000008, 3.32589999999999986, 3.52769999999999984, 3.69550000000000001, 3.82779999999999987, 3.92309999999999981, 3.98070000000000013, 4.0, 3.98070000000000013, 3.92309999999999981, 3.82779999999999987, 3.69550000000000001, 3.52769999999999984, 3.32589999999999986, 3.09200000000000008, 2.8283999999999998, 2.53759999999999986, 2.22230000000000016, 1.88559999999999994, 1.53069999999999995, 1.16110000000000002, 0.78039999999999998, 0.3921, 0.0, -0.3921, -0.78039999999999998, -1.16110000000000002, -1.53069999999999995, -1.88559999999999994, -2.22230000000000016, -2.53759999999999986, -2.8283999999999998, -3.09200000000000008, -3.32589999999999986, -3.52769999999999984, -3.69550000000000001, -3.82779999999999987, -3.92309999999999981, -3.98070000000000013, -4.0, -3.98070000000000013, -3.92309999999999981, -3.82779999999999987, -3.69550000000000001, -3.52769999999999984, -3.32589999999999986, -3.09200000000000008, -2.8283999999999998, -2.53759999999999986, -2.22230000000000016, -1.88559999999999994, -1.53069999999999995, -1.16110000000000002, -0.78039999999999998, -0.3921, -0.0, 0.3921, 0.78039999999999998, 1.16110000000000002, 1.53069999999999995, 1.88559999999999994, 2.22230000000000016, 2.53759999999999986, 2.8283999999999998, 3.09200000000000008, 3.32589999999999986, 3.52769999999999984, 3.69550000000000001, 3.82779999999999987, 3.92309999999999981, 3.98070000000000013, 4.0, 3.98070000000000013, 3.92309999999999981, 3.82779999999999987, 3.69550000000000001, 3.52769999999999984, 3.32589999999999986, 3.09200000000000008, 2.8283999999999998, 2.53759999999999986, 2.22230000000000016, 1.88559999999999994, 1.53069999999999995, 1.16110000000000002, 0.78039999999999998, 0.3921, 0.0, -0.3921, -0.78039999999999998, -1.16110000000000002, -1.53069999999999995, -1.88559999999999994, -2.22230000000000016, -2.53759999999999986, -2.8283999999999998, -3.09200000000000008, -3.32589999999999986, -3.52769999999999984, -3.69550000000000001, -3.82779999999999987, -3.92309999999999981, -3.98070000000000013, -4.0, -3.98070000000000013, -3.92309999999999981, -3.82779999999999987, -3.69550000000000001, -3.52769999999999984, -3.32589999999999986, -3.09200000000000008, -2.8283999999999998, -2.53759999999999986, -2.22230000000000016, -1.88559999999999994, -1.53069999999999995, -1.16110000000000002, -0.78039999999999998, -0.3921, -0.0]
  6.   set temp to []
  7.   set yyy to 1
  8.   repeat with xxx = 1 to 10
  9.     set dingus to the number of cast ("z" & xxx)
  10.     add(temp, dingus)
  11.   end repeat
  12.   set caranim to temp
  13.   set ogre to birth(script "buggyhead", 35, caranim)
  14. end
  15.  
  16. on talkyou soundname
  17.   global ogre, phrases
  18.   set the bugsound of ogre to soundname
  19.   sayit(ogre)
  20. end
  21.  
  22. on mydelay wholong
  23.   set ptime to the timer
  24.   repeat while (the timer - ptime) < wholong
  25.     updateStage()
  26.     if the mouseDown then
  27.       exit
  28.     end if
  29.   end repeat
  30. end
  31.  
  32. on sactivate snew, stuff
  33.   puppetSprite(snew, 1)
  34.   if listp(stuff) then
  35.     set the castNum of sprite snew to getAt(stuff, 1)
  36.     set the locH of sprite snew to getAt(stuff, 2)
  37.     set the locV of sprite snew to getAt(stuff, 3)
  38.     set the ink of sprite snew to getAt(stuff, 4)
  39.     set the type of sprite snew to getAt(stuff, 5)
  40.     set the stretch of sprite snew to getAt(stuff, 6)
  41.     set the foreColor of sprite snew to getAt(stuff, 7)
  42.     set the backColor of sprite snew to getAt(stuff, 8)
  43.   end if
  44. end
  45.  
  46. on sinfo sold
  47.   set stemp to []
  48.   add(stemp, the castNum of sprite sold)
  49.   add(stemp, the locH of sprite sold)
  50.   add(stemp, the locV of sprite sold)
  51.   add(stemp, the ink of sprite sold)
  52.   add(stemp, the type of sprite sold)
  53.   add(stemp, the stretch of sprite sold)
  54.   add(stemp, the foreColor of sprite sold)
  55.   add(stemp, the backColor of sprite sold)
  56.   return stemp
  57.   put stemp
  58. end
  59.  
  60. on makesiner
  61.   global variations
  62.   set variations to []
  63.   repeat with ddd = 1 to 64
  64.     add(variations, 4 * sin(ddd * PI / 32))
  65.   end repeat
  66. end
  67.